package com.ph.irp.base.assistantmaterial.service.impl;
import java.util.List;
import com.ph.irp.base.assistantmaterial.dao.PBaseAssistantmaterialDeliveryaddressDao;
import com.ph.irp.base.assistantmaterial.service.PBaseAssistantmaterialDeliveryaddressService;
import com.ph.irp.model.PBaseAssistantmaterialDeliveryaddress;

public class PBaseAssistantmaterialDeliveryaddressServiceImpl implements
		PBaseAssistantmaterialDeliveryaddressService {
	private PBaseAssistantmaterialDeliveryaddressDao deliveryAddressDaoProxy;


	public PBaseAssistantmaterialDeliveryaddressDao getDeliveryAddressDaoProxy() {
		return deliveryAddressDaoProxy;
	}

	public void setDeliveryAddressDaoProxy(
			PBaseAssistantmaterialDeliveryaddressDao deliveryAddressDaoProxy) {
		this.deliveryAddressDaoProxy = deliveryAddressDaoProxy;
	}

	@Override
	public void addDeliveryaddress(
			PBaseAssistantmaterialDeliveryaddress deliveryAddress)
			throws Throwable {
		deliveryAddressDaoProxy.addDeliveryaddress(deliveryAddress);
	}

	@Override
	public void deleteDeliveryaddress(int deliveryAddressId)
			throws Throwable {
		deliveryAddressDaoProxy.deleteDeliveryaddress(deliveryAddressId);
	}

	@Override
	public PBaseAssistantmaterialDeliveryaddress getDeliveryaddressById(
			int deliveryAddressId) throws Throwable {
		return deliveryAddressDaoProxy.getDeliveryaddressById(deliveryAddressId);
	}

	@Override
	public List<PBaseAssistantmaterialDeliveryaddress> getDeliveryaddressList()
			throws Throwable {
		return deliveryAddressDaoProxy.getDeliveryaddressList();
	}

	@Override
	public void updateDeliveryaddress(
			PBaseAssistantmaterialDeliveryaddress deliveryAddress)
			throws Throwable {
		deliveryAddressDaoProxy.updateDeliveryaddress(deliveryAddress);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getDeliveryaddressByCode(String code) throws Throwable {
	   return deliveryAddressDaoProxy.getDeliveryaddressByCode(code);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getDeliveryaddressByName(String name) throws Throwable {
	   return deliveryAddressDaoProxy.getDeliveryaddressByName(name);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getDeliveryaddressByNameAndCode(String name, String code)
			throws Throwable {
		return deliveryAddressDaoProxy.getDeliveryaddressByCodeAndName(name, code);
	}

}
